import request from "@/utils/request";

export default {
  // 校验密码,userId,password
  checkPwd(userId, password) {
    return request({
      url: "/user/pwd",
      method: "POST",
      data: {
        userId,
        password
      }
    });
  },

  // 修改密码userId
  updatePwd(userId, password) {
    return request({
      url: "/user/pwd",
      method: "PUT",
      data: {
        userId,
        password
      }
    });
  }
};
